import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LogService } from './log.service';
import { LogController } from './log.controller';
import { Log } from './entities/log.entity';
import { JWT_CONFIG } from 'src/config/jwt.config';
import { JwtModule } from '@nestjs/jwt';

@Module({
  imports: [TypeOrmModule.forFeature([Log]), JwtModule.register({ 
    secret: JWT_CONFIG.SECRET, 
    signOptions: JWT_CONFIG.SIGN_OPTIONS 
  })],
  controllers: [LogController],
  providers: [LogService],
  exports: [LogService]
})
export class LogModule { }
